package com.freeter.modules.cityrecord.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.freeter.modules.cityrecord.entity.CityRecordEntity;
import com.freeter.modules.cityrecord.entity.view.CityHotMapView;
import com.freeter.modules.cityrecord.entity.view.CityRecordView;
import com.freeter.modules.cityrecord.entity.vo.CityRecordVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 城市记录
 *
 * @author xuchen
 * @email 171998110@qq.com
 * @date 2019-04-07 14:01:49
 */
@SuppressWarnings({"unchecked", "rawtypes"})
public interface CityRecordDao extends BaseMapper<CityRecordEntity> {

    List<CityRecordVO> selectListVO(@Param("ew") Wrapper<CityRecordEntity> wrapper);

    CityRecordVO selectVO(@Param("ew") Wrapper<CityRecordEntity> wrapper);


    List<CityRecordView> selectListView(@Param("ew") Wrapper<CityRecordEntity> wrapper);

    List<CityRecordView> selectListView(Pagination page, @Param("ew") Wrapper<CityRecordEntity> wrapper);

    CityRecordView selectView(@Param("ew") Wrapper<CityRecordEntity> wrapper);

    List<CityHotMapView> selectHotCity();

    List<CityRecordEntity> selectRecordByProvince(@Param("provinceName") String provinceName);
}
